<!DOCTYPE html>
<html>
<#include "../head.html">
<body class="full">
<div class="mc">
    <div>
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
            <!--顶部导航---}-->

            <!--面包屑导航---{-->
            <#assign moduleName="自动投资用户">
            <#include "banner.html">
            <!--面包屑导航---}-->

            <!--工具栏--{-->
            <div id="toolbar" class="clearfix">
                <div class="toolbor-module export">
                    <input onclick="exportxls()" value="导出列表" class="input-button export-btn" type="button">
                </div>
                <div class="toolbor-module export">
                    &nbsp;&nbsp;&nbsp;自动投资用户数量：${total?c!}人
                </div>
                <div class="toolbor-module export">
                 <div class="formTit">用户名：</div>
                    <input type="text" name="showName" id="showName" value="${showName!}"  class="search-value" placeholder="请输入用户名">
                </div>
                <div class="toolbor-module search">
                    <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                </div>
            </div>
            <!--工具栏--}-->

            <div id="main" class="clearfix">
                <form action="" method="post">
                    <table class="data-list">
                        <tr class="header">
                            <td>序号(ID)</td>
                            <td>用户</td>
                            <td>姓名</td>
                            <td>投资金额</td>
                            <td>标期起</td>
                            <td>标期止</td>
                            <td>比例起</td>
                            <td>比例止</td>
                            <td>是否使用红包</td>
                            <td>添加时间</td>
                        </tr>
                        <#import "../../common/function.html" as func>
                            <#list list as item>
                                <tr class="s">
                                    <td>${item.id?c}</td>
                                    <td>${item.user.showName!}</td>
                                    <td>${item.user.realName!}</td>
                                    <td>${item.tenderAccount!}</td>
                                    <td>
                                        <#if item.timeStart==0>不限
                                        <#else>${item.timeStart}天
                                        </#if>
                                    </td>
                                    <td>
                                        <#if item.timeEnd==0>不限
                                        <#else>${item.timeEnd}天
                                        </#if>
                                    </td>
                                    <td>${item.aprStart}%</td>
                                    <td>${item.aprEnd}%</td>
                                    <td>
                                        <#if item.excludeCondition??>是
                                        <#else>否
                                        </#if>
                                    </td>
                                    <td>${item.addtime!}</td>
                                </tr>
                            </#list>
                    </table>
                </form>

                <!--底部工具栏--{-->
                <div id="bottomToolbar" class="clearfix">
                    <div class="other-tool">
                        <dl class="refresh-data">
                            <dt class="refresh-data-icon"></dt>
                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                        </dl>
                    </div>

                    <!--翻页系统--{-->
                    <div class="container s_formPage">
                        <#import "../../common/page.html" as pager>
                            <@pager.pagination page=page url="${pageUrl}" map=param style="style1" />
                    </div>
                    <!--翻页系统--}-->
                </div>
                <!--底部工具栏--}-->

                <script>
                    var url = 'autoInvest.html?search=true';
                    var xlsurl = 'autoInvest.html?export=export';
                    function sousuo(){
                        var sou = "";
                        var showName = $("#showName").val();
                        if (showName!=null&&showName!=""){
                            sou += "&showName="+showName;
                        }
                        location.href=url+sou;
                    }
                    function exportxls(){
                         var sou = "";
                        var showName = $("#showName").val();
                        if (showName!=null&&showName!=""){
                            sou += "&showName="+showName;
                        }
                        location.href=xlsurl+sou;
                    }
                </script>
            </div>

        </div>
    </div>
    <div class="mc-b">
        <#include "../foot.html">
    </div>
</div>
<#include "../jsPage.html">
    <script>
        $("textarea.remark,.toolbor-module .search-value").unbind("focus");
    </script>
</body>
</html>
